import Vue from 'vue'
import VueRouter from 'vue-router'

import login from '../views/login'
import info from '../views/info'
import entering from '../views/entering'
import remark from '../views/remark'
import success from '../views/success'
import qrcode from '../views/qrcode'
import form from '../views/form'
import thank from '../views/thank'

Vue.use(VueRouter);

const router = new VueRouter({
	//mode: 'history',
	routes: [
    {
		name:'login',
		path: '/login',
        meta: { auth: false },
		component: login
  },
   {
		name:'info',
		path: '/info',
		component: info
  },
   {
		name:'entering',
		path: '/entering',
		component: entering
  },
  {
		name:'qrcode',
		path: '/qrcode',
		component: qrcode
  },
  {
		name:'form',
		path: '/form',
		component: form
  },
  {
		name:'thank',
		path: '/thank',
		component: thank
  },
   {
		name:'remark',
		path: '/remark',
		component: remark
  },
  {
		name:'success',
		path: '/success',
		component: success
  },
  {
		path: '*',
		redirect: '/login'
	}]
});

export default router;
